<?php
namespace app\api\model;
use think\Model;

class Finished extends Model
{
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;
    protected $pk = 'id';
    
    // 分类
    public function ftype() {
        return $this->hasOne('\app\api\model\Category', 'id', 'type_id')->bind(
            ['type' => 'name']
        );
    }
}

